﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using DotNetNuke.Services.Tokens;

namespace IB.Common
{
    public class ProductTokenReplace : TokenReplace
    {
        public  ProductTokenReplace():base(Scope.DefaultSettings)
        {
            UseObjectLessExpression = true;
            PropertySource[ObjectLessToken]=new ProductInfo();
            PropertySource["pro"]=new ProductInfo();
        }

        public  ProductTokenReplace(ProductInfo prInfo ):base(Scope.DefaultSettings)
        {
            UseObjectLessExpression = true;
            PropertySource[ObjectLessToken]=prInfo;
            PropertySource["pro"] = prInfo;
        }

        public  string ReplaceProductInfo(string strSource)
        {
            return base.ReplaceTokens(strSource);
        }

    }
}
